package edu.spbsu.nonsm00th.qdiff.parser.exception;

import java.text.MessageFormat;

/**
 *
 * @author mbuzdov
 */
public class UnknownCharException extends ParserException {

    private char c;

    public UnknownCharException(int position, char c) {
        super(MessageFormat.format("There is an unknown char: {0} at posotion {1}", c, position));
        this.position = position;
        this.c = c;
    }

    public char getC() {
        return c;
    }

}
